package com.tianhui.consignortwofei.mvp.model.enty;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2020/12/25
 * @description
 **/
public class VehicleInfo implements Parcelable {
    public String driverid;
    public String drivertel;  //手机号
    public String drivername;  //司机姓名
    public String vehiclenum;//车牌号
    public String brandmodel;    //品牌型号
    public String carriertype; //string
    public String vehicletype; //车辆类型
    public String vehicletypename; //车辆类型
    public String vehiclenumcolortype;//车牌颜色
    public String vehiclenumcolortypename;//车牌颜色
    public String vehiclenumtype;//牌照类型
    public String vehiclenumtypename;//牌照类型
    public String carrying;   //车辆载质量(吨)
    public String roadtransportimage;//道路运输证照片（正面）
    public String imgroadtransportimage;//道路运输证照片（正面）
    public String roadtransportendtime;//道路运输证失效日期
    public String drivingimage;  //行驶证照片
    public String imgdrivingimage;  //行驶证照片
    public String drivingendimage;  //行驶证照片(挂)
    public String imgdrivingendimage;  //行驶证照片(挂)
    public String drivingimagecopy;  //行驶证副页照片
    public String imgdrivingimagecopy;  //行驶证副页照片
    public String anchorcompayimage;  //行驶证副页背面照片
    public String imganchorcompayimage;  //行驶证副页背面照片
    public String drivingendimagecopy;  //行驶证副页照片(挂)
    public String imgdrivingendimagecopy;  //行驶证副页照片(挂)
    public String effectivedate;   //有效期至
    public String engineno;      //发动机号
    public String fullcarrying;   //满载车辆载质量(吨)
    public String length;        //长
    public String height;        //高
    public String width;//宽
    public String owner;           //所属人
    public String passportdate;  //发证日期
    public String registerdate;   //注册日期
    public String roadtransportno;//道路运输证号
    public String roadtransportbegintime;//道路运输证发证日期
    public String businessno; //经营许可证号
    public String usenature;//使用性质
    public String vinno;//车辆识别代码
    public String remark;//备注
    public String id;//车辆id
    public String issuingorganizations;//发证机关
    public String vehicleenergytype;//车辆能源类型
    public String vehicleenergytypename;//车辆能源类型
    public String railerehicletvplatenumber;//挂车车牌
    public String managedimage;//车辆所有人为车主个人声明附件照片
    public String imgmanagedimage;//车辆所有人为车主个人声明附件照片
    public String signimage;//签名照片
    public String imgsignimage;//签名照片
    public String ismanaged;//是否挂靠车辆 0是否 1是
    public String managecompay;//挂靠公司
    public String managecompaydimage;//挂靠公司税务登记信息
    public String auditcontent;//拒绝原因
    public String carimage;//车头照
    public String imgcarimage;//车头照
    public String create_time;//创建时间
    //0 不是 1 是
    public String defaultvehicle;//是否默认车辆

    public int isaudit;//是否审核  0 未认证 1 已认证 2 待审核 3 拒绝 4 停用
    public String istatus;//是否启用 0 未启用 1 已启用
    public String ownertel;//所有人联系方式


    protected VehicleInfo(Parcel in) {
        driverid = in.readString();
        drivertel = in.readString();
        drivername = in.readString();
        vehiclenum = in.readString();
        brandmodel = in.readString();
        carriertype = in.readString();
        vehicletype = in.readString();
        vehicletypename = in.readString();
        vehiclenumcolortype = in.readString();
        vehiclenumcolortypename = in.readString();
        vehiclenumtype = in.readString();
        vehiclenumtypename = in.readString();
        carrying = in.readString();
        roadtransportimage = in.readString();
        imgroadtransportimage = in.readString();
        roadtransportendtime = in.readString();
        drivingimage = in.readString();
        imgdrivingimage = in.readString();
        drivingendimage = in.readString();
        imgdrivingendimage = in.readString();
        drivingimagecopy = in.readString();
        imgdrivingimagecopy = in.readString();
        anchorcompayimage = in.readString();
        imganchorcompayimage = in.readString();
        drivingendimagecopy = in.readString();
        imgdrivingendimagecopy = in.readString();
        effectivedate = in.readString();
        engineno = in.readString();
        fullcarrying = in.readString();
        length = in.readString();
        height = in.readString();
        width = in.readString();
        owner = in.readString();
        passportdate = in.readString();
        registerdate = in.readString();
        roadtransportno = in.readString();
        roadtransportbegintime = in.readString();
        businessno = in.readString();
        usenature = in.readString();
        vinno = in.readString();
        remark = in.readString();
        id = in.readString();
        issuingorganizations = in.readString();
        vehicleenergytype = in.readString();
        vehicleenergytypename = in.readString();
        railerehicletvplatenumber = in.readString();
        managedimage = in.readString();
        imgmanagedimage = in.readString();
        signimage = in.readString();
        ismanaged = in.readString();
        managecompay = in.readString();
        managecompaydimage = in.readString();
        auditcontent = in.readString();
        carimage = in.readString();
        imgcarimage = in.readString();
        create_time = in.readString();
        defaultvehicle = in.readString();
        isaudit = in.readInt();
        istatus = in.readString();
        ownertel = in.readString();
    }

    public static final Creator<VehicleInfo> CREATOR = new Creator<VehicleInfo>() {
        @Override
        public VehicleInfo createFromParcel(Parcel in) {
            return new VehicleInfo(in);
        }

        @Override
        public VehicleInfo[] newArray(int size) {
            return new VehicleInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(driverid);
        parcel.writeString(drivertel);
        parcel.writeString(drivername);
        parcel.writeString(vehiclenum);
        parcel.writeString(brandmodel);
        parcel.writeString(carriertype);
        parcel.writeString(vehicletype);
        parcel.writeString(vehicletypename);
        parcel.writeString(vehiclenumcolortype);
        parcel.writeString(vehiclenumcolortypename);
        parcel.writeString(vehiclenumtype);
        parcel.writeString(vehiclenumtypename);
        parcel.writeString(carrying);
        parcel.writeString(roadtransportimage);
        parcel.writeString(imgroadtransportimage);
        parcel.writeString(roadtransportendtime);
        parcel.writeString(drivingimage);
        parcel.writeString(imgdrivingimage);
        parcel.writeString(drivingendimage);
        parcel.writeString(imgdrivingendimage);
        parcel.writeString(drivingimagecopy);
        parcel.writeString(imgdrivingimagecopy);
        parcel.writeString(anchorcompayimage);
        parcel.writeString(imganchorcompayimage);
        parcel.writeString(drivingendimagecopy);
        parcel.writeString(imgdrivingendimagecopy);
        parcel.writeString(effectivedate);
        parcel.writeString(engineno);
        parcel.writeString(fullcarrying);
        parcel.writeString(length);
        parcel.writeString(height);
        parcel.writeString(width);
        parcel.writeString(owner);
        parcel.writeString(passportdate);
        parcel.writeString(registerdate);
        parcel.writeString(roadtransportno);
        parcel.writeString(roadtransportbegintime);
        parcel.writeString(businessno);
        parcel.writeString(usenature);
        parcel.writeString(vinno);
        parcel.writeString(remark);
        parcel.writeString(id);
        parcel.writeString(issuingorganizations);
        parcel.writeString(vehicleenergytype);
        parcel.writeString(vehicleenergytypename);
        parcel.writeString(railerehicletvplatenumber);
        parcel.writeString(managedimage);
        parcel.writeString(imgmanagedimage);
        parcel.writeString(signimage);
        parcel.writeString(ismanaged);
        parcel.writeString(managecompay);
        parcel.writeString(managecompaydimage);
        parcel.writeString(auditcontent);
        parcel.writeString(carimage);
        parcel.writeString(imgcarimage);
        parcel.writeString(create_time);
        parcel.writeString(defaultvehicle);
        parcel.writeInt(isaudit);
        parcel.writeString(istatus);
        parcel.writeString(ownertel);
    }
}
